package com.wanmait.demo.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.demo.mapper.ConfigMapper;
import com.wanmait.demo.pojo.Config;
import com.wanmait.demo.service.ConfigService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class ConfigServiceimpl implements ConfigService {
    @Resource
    private ConfigMapper configMapper;
    @Override
    public void insert(Config object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Config object) {

    }

    @Override
    public Config findById(Integer id) {
        return null;
    }

    @Override
    public List<Config> findAll() {
        return null;
    }

    @Override
    public PageInfo<Config> findPage(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public Integer findPage() {
        return configMapper.selectPage();
    }

    @Override
    public int componentpagrcount() {  //尹山坤
        return configMapper.componentpagrcount();
    }

    @Override
    public int componentpagesize() { //尹山坤
        return configMapper.componentpagesize();
    }

    /*@Override
    public int componentpagrcount() {
        return configMapper.componentpagrcount();
    }

    @Override
    public int componentpagesize() {
        return configMapper.componentpagesize();
    }*/


}
